Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zig example #140

Merged
merged 1 commit into from Jan 28, 2020
Merged

Add zig example #140

merged 1 commit into from Jan 28, 2020

Conversation

daurnimator
Copy link
Contributor

@daurnimator daurnimator commented Jan 22, 2020

zig is a relatively new programming language that hopes to make you never reach for C again.
This PR has the basic blink demo working from zig.

elf.setBuildMode(mode);
elf.setOutputDir(".");

const binary = b.addSystemCommand(&[_][]const u8{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be able to remove this once ziglang/zig#2826 is complete.

\\bss_done:
: [ret] "=" (-> void)
: [fbss] "m" (&_fbss),
[ebss] "m" (&_ebss)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do I need clobbers here?

@xobs xobs merged commit 53a62f8 into im-tomu:master Jan 28, 2020
@daurnimator daurnimator deleted the zig branch January 28, 2020 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants